<template>
  <div class="category-all">
    <div :style="{color: color, borderColor: color}" class="title">{{title}}</div>
    <div class="products">
      <product :img-src="imgSrc"></product>
    </div>
  </div>
</template>

<script>
import product from "./product";

export default {
  name: "category",
  props: ["title", "color", "imgSrc"],
  components: {
    product: product
  }
};
</script>

<style scoped>
.title {
  height: 50px;
  line-height: 50px;
  font-weight: 400;
  font-size: 20px;
  border-bottom: 1px solid #d58717;
}

.products {
  margin-top: 20px;
}
</style>